home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmsyscm / _setup.1 / AHMTDroppedFiles.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-12  |  2.5 KB  |  71 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'AHMTDroppedFiles.pas' rev: 3.00
  6.  
  7. #ifndef AHMTDroppedFilesHPP
  8. #define AHMTDroppedFilesHPP
  9. #include <AHMTFormHook.hpp>
  10. #include <AHMSystem.hpp>
  11. #include <ShellAPI.hpp>
  12. #include <SysUtils.hpp>
  13. #include <Classes.hpp>
  14. #include <Messages.hpp>
  15. #include <Windows.hpp>
  16. #include <SysInit.hpp>
  17. #include <System.hpp>
  18.  
  19. //-- user supplied -----------------------------------------------------------
  20.  
  21. namespace Ahmtdroppedfiles
  22. {
  23. //-- type declarations -------------------------------------------------------
  24. typedef void __fastcall (__closure *TAHMOnDrop)(System::TObject* Sender, System::AnsiString DroppedItem
  25.     );
  26.  
  27. enum TAHMFileDisplay { dFullPath, dFullName, dExtension };
  28.  
  29. class DELPHICLASS TAHMDroppedFiles;
  30. class PASCALIMPLEMENTATION TAHMDroppedFiles : public Ahmtformhook::TAHMHookComponent 
  31. {
  32.     typedef Ahmtformhook::TAHMHookComponent inherited;
  33.     
  34. private:
  35.     Classes::TStrings* FDroppedItems;
  36.     TAHMFileDisplay FCollectBy;
  37.     int FNoFilesDropped;
  38.     bool FActive;
  39.     Classes::TNotifyEvent FOnStartDrop;
  40.     Classes::TNotifyEvent FOnEndDrop;
  41.     TAHMOnDrop FOnDrop;
  42.     void __fastcall SetDroppedItems(Classes::TStrings* value);
  43.     void __fastcall DropFiles(int hDropHandle);
  44.     void __fastcall SetActive(bool Value);
  45.     
  46. public:
  47.     virtual void __fastcall Hooked(Messages::TMessage &AMsg);
  48.     __fastcall virtual TAHMDroppedFiles(Classes::TComponent* AOwner);
  49.     __fastcall virtual ~TAHMDroppedFiles(void);
  50.     virtual void __fastcall Loaded(void);
  51.     __property int NoFilesDropped = {read=FNoFilesDropped, nodefault};
  52.     
  53. __published:
  54.     __property TAHMFileDisplay CollectBy = {read=FCollectBy, write=FCollectBy, default=0};
  55.     __property Classes::TStrings* DroppedItems = {read=FDroppedItems, write=SetDroppedItems, stored=false
  56.         };
  57.     __property bool Active = {read=FActive, write=SetActive, default=0};
  58.     __property Classes::TNotifyEvent OnStartDrop = {read=FOnStartDrop, write=FOnStartDrop};
  59.     __property Classes::TNotifyEvent OnEndDrop = {read=FOnEndDrop, write=FOnEndDrop};
  60.     __property TAHMOnDrop OnDrop = {read=FOnDrop, write=FOnDrop};
  61. };
  62.  
  63. //-- var, const, procedure ---------------------------------------------------
  64.  
  65. }    /* namespace Ahmtdroppedfiles */
  66. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  67. using namespace Ahmtdroppedfiles;
  68. #endif
  69. //-- end unit ----------------------------------------------------------------
  70. #endif    // AHMTDroppedFiles
  71.